---
layout: "default"
title: "withUnsafeMutablePointers"
description: "Swift documentation for 'withUnsafeMutablePointers': Call body with UnsafeMutablePointers to the stored Header."
keywords: "withUnsafeMutablePointers,func,swift,documentation"
root: "/v3.0"
---

<div class="declaration" id="func-withunsafemutablepointers-r_-unsafemutablepointer-header-unsafemutablepointer-element-throws-r">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-withunsafemutablepointers-r_-unsafemutablepointer-header-unsafemutablepointer-element-throws-r">final func withUnsafeMutablePointers&lt;R&gt;(<wbr>_: (UnsafeMutablePointer&lt;Header&gt;, UnsafeMutablePointer&lt;Element&gt;) throws -&gt; R)</a>
        
<div class="comment collapse" id="comment-func-withunsafemutablepointers-r_-unsafemutablepointer-header-unsafemutablepointer-element-throws-r"><div class="p">
    <p>Call <code>body</code> with <code>UnsafeMutablePointer</code>s to the stored <code>Header</code>
and raw <code>Element</code> storage.</p>

<p><strong>Note:</strong> These pointers are only valid for the duration of the
  call to <code>body</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">final func withUnsafeMutablePointers&lt;R&gt;(_ body: (UnsafeMutablePointer&lt;Header&gt;, UnsafeMutablePointer&lt;Element&gt;) throws -&gt; R) rethrows -&gt; R</code>
    
    
</div></div>
</div>
